<?php
namespace app\client\wxpay;
include_once __DIR__ . '/wxpay/WxPay.Config.Interface.php';

class Config extends \WxPayConfigInterface {
    /* private $APPID = '';
    private $MCHID = '';
    private $KEY = ''; */
    private $APPID = '';
    private $MCHID = '';
    private $KEY = '';
    public function GetAppId() {
        return $this->APPID;
    }
    
    public function GetMerchantId() {
        return $this->MCHID;
    }
    
    public function GetKey() {
        return $this->KEY;
    }
    
    public function GetAppSecret() {
        return '';
    }
    
    public function GetNotifyUrl() {
        return '';
    }
    
    public function GetSignType() {
        return "HMAC-SHA256";
    }
    
    public function GetProxy(&$proxyHost, &$proxyPort)
    {
        $proxyHost = '0.0.0.0';
        $proxyPort = 0;
    }
    
    public function GetReportLevenl() {
        return 1;
    }
    
    public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
    {
        $sslCertPath = __DIR__ . '/cert/apiclient_cert.pem';
        $sslKeyPath = __DIR__ . '/cert/apiclient_key.pem';
    }
    
    
    public function setMerchantId($mchid) {
        $this->MCHID = $mchid;
    }
    
    public function setKey($key) {
        $this->KEY = $key;
    }
    
}